-
Notifications
You must be signed in to change notification settings - Fork 100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tests for issue #687 #688
base: master
Are you sure you want to change the base?
tests for issue #687 #688
Conversation
@Test | ||
public void testQEncoding() throws Exception { | ||
String disposition = ";\n" + | ||
" filename==?utf-8?Q?XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX--111111111-XXXXXXXXXXXXXXXXXXX?=\n" + |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
filename==?utf-8?Q?X...
is invalid - it is missing *
, it should be filename*==?utf-8?Q?X...
, so the failure here is actually correct behaviour
" filename==?utf-8?Q?XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX--111111111-XXXXXXXXXXXXXXXXXXX?=\n" + | ||
" =?utf-8?Q?XXXXXXXXXXXXXXXXXXX=2Epdf?=;\n" + | ||
" filename*0*=utf-8''XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX--111111111-XXXXXXXXXXX;\n" + | ||
" filename*1*=XXXXXXXXXXXXXXXXXXXXXXXXXXX.pdf"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this could probably be handled in a way that if there is a valid variant of the parameter then ignore (and just log) the invalid one in non-string operation mode or through some new, different property.
An implementation of this would probably need adding a property to ParameterList
to keep track of decoded parameters and tweak the behaviour of combineMultisegmentNames
method
Tests for the issue #687